package com.haorui.lygyd.wxapi.repository;

import com.haorui.base.core.repository.BaseRepository;
import com.haorui.lygyd.wxapi.entity.WXUserInfoEntity;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 系统生成
 * 日期: Sat Sep 30 16:00:14 CST 2017
 */
@RepositoryRestResource(path = "weixinuserinfo")
public interface WXUserInfoRepository extends BaseRepository<WXUserInfoEntity,String> {
    WXUserInfoEntity findByOpenId(@Param("openId") String openId);
    List<WXUserInfoEntity> findAllByMemberId(@Param("memberId") String memberId);
}
